package grape.house.rest.client.impl.estatealbum;

import grape.house.rest.client.estatealbum.EstateAlbumClient;
import grape.house.rest.estatealbum.mvc.EstateAlbumInnerController;
import grape.house.rest.estatealbum.vo.EstateAlbumVo;
import grape.house.service.estatealbum.po.EstateAlbum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 楼盘相册客户端实现
 * Created by yangwei
 * Created at 2020/9/27 16:55
 */
@Component
public class EstateAlbumClientImpl implements EstateAlbumClient {

    @Autowired
    private EstateAlbumInnerController estateAlbumInnerController;


    @Override
    public String trans(String type, String key) {
        return estateAlbumInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return estateAlbumInnerController.support(type);
    }

    @Override
    public EstateAlbum getEstateAlbumById(String id) {
        return estateAlbumInnerController.getEstateAlbumById(id);
    }

    @Override
    public EstateAlbumVo getEstateAlbumVoById(String id) {
        return estateAlbumInnerController.getEstateAlbumVoById(id);
    }

    @Override
    public List<EstateAlbum> getEstateAlbumByEstateId(String estateId) {
        return estateAlbumInnerController.getEstateAlbumByEstateId(estateId);
    }

    @Override
    public List<EstateAlbum> getByEstateIdAndPropertyTypeId(String estateId, String propertyTypeId) {
        return estateAlbumInnerController.getByEstateIdAndPropertyTypeId(estateId,propertyTypeId);
    }
}
